package com.vueblog.webapi.service;

import com.vueblog.webapi.entity.CommentEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vueblog.webapi.request.CreateCommentInfoRequest;
import com.vueblog.webapi.response.BaseResponse;

import java.security.PrivateKey;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author luosj
 * @since 2021-05-15
 */
public interface ICommentService extends IService<CommentEntity> {

    /**
     * 根据博客id获评论信息
     */
    BaseResponse getCommentsByBlogId(Long id);

    /**
     * 创建评论
     */
    BaseResponse createComment(CreateCommentInfoRequest request);

    /**
     * 根据评论id删除评论
     */
    BaseResponse deleteComment(String id);
}
